<script setup>
  import {ref} from "vue";

  const city=ref('');
</script>

<template>
  <h1>下拉框组件</h1>
  <el-select placeholder="选择你喜欢的城市" style="width: 50%" v-model="city">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="上海" value="sh"></el-option>
    <el-option label="南京" value="nj"></el-option>
    <el-option label="三亚" value="sy"></el-option>
  </el-select>
</template>

<style scoped>

</style>